<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改直播间信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-room-edit" th:object="${teaRoom}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">直播间编号：</label>
                <div class="col-sm-8">
                    <input name="roomCode" th:field="*{roomCode}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">直播间名字，最短3个汉字，最长17个汉字，1个汉字相当于2个字符：</label>
                <div class="col-sm-8">
                    <input name="name" th:field="*{name}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">背景图，填入mediaID：</label>
                <div class="col-sm-8">
                    <input name="coverImg" th:field="*{coverImg}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">直播计划开始时间：</label>
                <div class="col-sm-8">
                    <input name="startTime" th:field="*{startTime}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">直播计划结束时间：</label>
                <div class="col-sm-8">
                    <input name="endTime" th:field="*{endTime}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">主播昵称，最短2个汉字，最长15个汉字，1个汉字相当于2个字符：</label>
                <div class="col-sm-8">
                    <input name="anchorName" th:field="*{anchorName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">主播微信号，如果未实名认证，需要先前往“小程序直播”小程序进行实名验证：</label>
                <div class="col-sm-8">
                    <input name="anchorWechat" th:field="*{anchorWechat}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">主播副号微信号，如果未实名认证：</label>
                <div class="col-sm-8">
                    <input name="subAnchorWechat" th:field="*{subAnchorWechat}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">创建者微信号，不传入则此直播间所有成员可见。传入则此房间仅创建者、管理员、超管、直播间主播可见：</label>
                <div class="col-sm-8">
                    <input name="createrWechat" th:field="*{createrWechat}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">分享图，填入mediaID：</label>
                <div class="col-sm-8">
                    <input name="shareImg" th:field="*{shareImg}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">购物直播频道封面图，填入mediaID：</label>
                <div class="col-sm-8">
                    <input name="feedsImg" th:field="*{feedsImg}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">是否开启官方收录 【1: 开启，0：关闭】，默认开启收录：</label>
                <div class="col-sm-8">
                    <input name="isFeedsPublic" th:field="*{isFeedsPublic}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">是否关闭点赞 【0：开启，1：关闭】：</label>
                <div class="col-sm-8">
                    <input name="closeLike" th:field="*{closeLike}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">是否关闭货架 【0：开启，1：关闭】：</label>
                <div class="col-sm-8">
                    <input name="closeGoods" th:field="*{closeGoods}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">是否关闭评论 【0：开启，1：关闭】：</label>
                <div class="col-sm-8">
                    <input name="closeComment" th:field="*{closeComment}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">是否关闭回放 【0：开启，1：关闭】默认关闭回放：</label>
                <div class="col-sm-8">
                    <input name="closeReplay" th:field="*{closeReplay}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">是否关闭分享 【0：开启，1：关闭】默认开启分享：</label>
                <div class="col-sm-8">
                    <input name="closeShare" th:field="*{closeShare}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">是否关闭客服 【0：开启，1：关闭】 默认关闭客服：</label>
                <div class="col-sm-8">
                    <input name="closeKf" th:field="*{closeKf}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">是否推荐1是0否：</label>
                <div class="col-sm-8">
                    <input name="recommend" th:field="*{recommend}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">是否精选1是0否：</label>
                <div class="col-sm-8">
                    <input name="selected" th:field="*{selected}" class="form-control" type="text" required>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "tea/room";
        $("#form-room-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-room-edit').serialize());
            }
        }
    </script>
</body>
</html>